<div class="area_setting">
  	<input type="hidden" id="campaign_id" value={$campaign_id} />
	<input type="hidden" id="user_id" value={$current_user_id} />
	<foreach name="section_area" item="section">
		<div class="area_section" data-section="{$key}">
			<div class="dropdown-wrap">
			    <a class="dropdown-toggle accent-color" href="javascript:void(0)">{$key}<b class="caret"></b></a>
			    <ul class="dropdown-menu" role="menu" data-toggle="dropdown">
	               <li><a data-menu='selectall' href="javascript:void(0)">全选</a></li>
	               <li><a data-menu='unselectall' href="javascript:void(0)">全不选</a></li>
	            </ul>
			</div>
            <?php $select_css_styles = array('', 'some_checked', 'checked'); ?>
			<ul class="area_list" id="area_list">
				<volist name="section" id="v">
					<li>
						<a href="javascript:void(0);" data-aid="{$v.area_id}" data-type="province" data-pid="0" class="{$select_css_styles[$v['selected']]}" >
							{$v.name}
						</a>
						<notempty name="v.cities">
							<ul class="area_sublist" data-province_id="{$v.area_id}">
								<volist name="v.cities" id="c">
									<li>
										<a href="javascript:void(0)" data-aid='{$c.area_id}'  data-type="city" data-pid='{$v.area_id}' <if condition="$c.selected eq true">class="checked"</if>>
											{$c.name}
										</a>
									</li>
								</volist>
							</ul>
						</notempty>
					</li>
				</volist>
			</ul>

		</div>
	</foreach>
</div>